<?php
$_pjt_=$C->PJT[3];
define('PROJECT_PATH',$_pjt_['disk_path']);
define('CONTROLLER_DIR',PROJECT_PATH.'controllers/');
define('SERVICE_DIR',PROJECT_PATH.'services/');
define('EXP_DIR',PROJECT_PATH.'exps/');
define('MODEL_DIR',PROJECT_PATH.'models/');
define('VIEWER_DIR',PROJECT_PATH.'viewers/');
define('DEFAULT_VIEWER_NAME','');

define('PROJECT_URL',$C->WEB['url'].$_pjt_['in']);
define('PROJECT_CSS_URL',$C->WEB['url'].$_pjt_['folder'].'/static/css/');
define('PROJECT_JS_URL',$C->WEB['url'].$_pjt_['folder'].'/static/js/');
define('PROJECT_IMG_URL',$C->WEB['url'].$_pjt_['folder'].'/static/images/');

define('UEDITOR_URL',$C->WEB['url'].'common/ueditor/');

unset($_pjt_);
s_i_p(array(CONTROLLER_DIR,EXP_DIR,SERVICE_DIR));


//
define('DEBUG',false);
if(defined('DEBUG') and DEBUG==TRUE){
	//error_reporting(E_ALL & ~E_NOTICE);//E_ALL & ~E_NOTICE | E_STRICT
	error_reporting(E_ALL);
	ini_set('display_errors', 'On');
	ini_set('log_errors', 'Off');
}else{
	error_reporting(E_ALL & ~E_NOTICE);
	ini_set('display_errors', 'Off');
	ini_set('log_errors', 'On');
	ini_set('error_log', PROJECT_PATH.'runtime/error_log.php');
}
